
package WH;

import com.microsoft.schemas._2003._10.serialization.arrays.ArrayOfstring;

public class Main {
    
    public static void main(String[] args){
    
        WarehouseClient test = new WarehouseClient();
        
        // Test warehouse
        test.printWarehouse();
        
        // Test check stock
       //test.testCheckStock("Oil");
        //test.testCheckStock("Camshaft");
        //test.testCheckStock("Motor");
        
        // Test set quantity
        test.testSetQuantity("Oil", 5);
        test.testSetQuantity("Camshaft", 100);
        test.testSetQuantity("Motor", 200);
        
        // Test calc order
        ArrayOfstring temp = new ArrayOfstring();
        temp.getString().add("Oil"); // 500
        temp.getString().add("Camshaft"); // 750
        System.out.print("Expected 1250, got: ");
        test.testCalcOrder(temp); // == 1250
    }
}
